文章

顯示從 6月, 2020 起發佈的文章

How to install Xubuntu desktop on Ubuntu 18.04 Bionic Beaver Linux

Install Prerequisites We will be using the  tasksel  command to perform the installation of Xubuntu graphical environment. Let's start by install of  tasksel .  Open up terminal  and enter: $ sudo apt install tasksel Install Xfce desktop on Ubuntu 18.04 Now that we have the  tasksel  command available to our disposal, begin Xubunu desktop installation by executing the bellow command: $ sudo tasksel install xubuntu-desktop

selenium tor

#!/usr/bin/env python # coding: utf-8 # In[6]: from selenium import webdriver import pandas as pd import time import subprocess # In[15]: chrome_options = webdriver.ChromeOptions() chrome_options.add_argument( "--proxy-server=socks5://127.0.0.1:9050" ) driver = webdriver.Chrome( '/home/dslinux/code-tools/chromedriver' , chrome_options =chrome_options ) driver.get( "https://check.torproject.org/" ) driver.page_source p = subprocess.Popen([ 'sudo' , 'service' , 'tor' , 'reload' ], stdin =subprocess.PIPE) p.stdin.write( ( 'dslinux' + ' \n ' ).encode() ) p.stdin.flush() # In[ ]: # In[ ]:

Tor installation ubuntu

Tor  installation The installation of  Tor  depends on your system, and is detailed on the  official website . On a  Debian  or  Raspbian , we use: sudo apt-get install tor To launch  Tor , just run: sudo service tor start

Python parent folder import module

import sys sys.path.append('/media/sf_SharedProjects/') import __________________

Install Docker on Ubuntu

圖片
Docker  is an increasingly popular software package that  creates a container  for application development. Developing in Docker speeds up applications, as it shares the kernel and other resources, instead of requiring  dedicated server resources . There are two versions of Docker – Docker CE (Community Edition) and Docker EE (Enterprise Edition). If you have a small-scale project, or you’re just learning, you will want to use Docker CE. In this tutorial, we will show you  how to install Docker on Ubuntu 18.04 . Prerequisites Ubuntu 18.04 64-bit operating system A user account with  sudo  privileges Command-line/terminal ( CTRL-ALT-T or Applications menu > Accessories > Terminal ) Docker software repositories (optional) Outlet Dedicated Servers Starting at Only $30.00/mo CONFIGURE NOW Install Docker on Ubuntu Using Default Repositories Step 1: Update Software Repositories It’s a good idea to update the local database of software to make sure you’...

Virtualbox Shared Folder Permission denied

Add yourself to the vboxsf group within the guest VM. Solution 1 Run sudo adduser $USER vboxsf from terminal. (On Suse it's sudo usermod --append --groups vboxsf $USER) To take effect you should log out and then log in, or you may need to reboot.

selenium chromedriver web scrapper etf

from selenium import webdriver import pandas as pd import time driver = webdriver.Chrome('./chromedriver') symbol_df  = pd.DataFrame([]) for i in range(1,50):     driver.get("https://google.com")     time.sleep(1)     driver.get("https://etfdb.com/screener/#page="+str(i))     time.sleep(1)     symbol_df = symbol_df.append( pd.DataFrame( pd.read_html(driver.page_source)[0]['Symbol'] )[:-1] )          print(i) symbol_df.reset_index( drop = True ).drop_duplicates().to_csv( 'list_etf.csv' )                                                                                                                       https://chromedr...