My Experience with Debian 8.6 - Terminal In A Simputer

My Experience with Debian 8.6

My isso is hosted on a machine powered by Debian, which is fabulous for its light weight.

I always dreamed of moving to Debian when my 50.0 GB system disk was occupied by the Windows updates.

Last week, after getting rid of the fucking annoying exams, I downloaded the Debian 8.6 live install image with Gnome pre-configured and wrote it to my USB on my new computer using Refus and live previewed the system, amazing me much. (Click on ME to download one)

Then I started installing it, with the help of the guide (The steps before Software selection r useful).

Notice: The article makes sense even if u r using a newer version of Debian.

Installation

Stuck at 33%

It was stuck at 33%. I googled and found that it was due to the long time spent on formatting. I restarted and just erased the disk I needed to use and select the option "no" to keep from formatting. Then it solved.

Stuck at installing GRUB Loader

Everything went well until it went to installing loader when both type couldn't be installed. So I searched again, finding out on a post from the Debian forum quoting one page of the Installation Guide from Debian wiki, including the reminder that "Do not use tools like unetbootin which alter the image". So I unzipped the original iso again to the USB disk and restarted the installation.

This time, it went to the end flawlessly.

Don't use win32diskimager, it will make ur USB unwritable, making it impossible to add any hardware to USB.

Usage

Well Gnome is so awesome that I got used to it quickly. Still there's something to be done.

Shadowsocks

It's a useful tool to access the banned sites in my country.

After trying several ways, I found the following one most effective (Thank the page for helping me out):

  1. Install pip and Shadowsocks using the following commands:

    sudo apt-get install python-pip
    
    sudo pip install shadowsocks
    
  2. Run the client using the following command (Replace the The.Server.Address, Port, Password and Decryption with ur own):

    sslocal -s The.Server.Address -p Port -l 1080 -k Password -t 600 -m Decryption
    

    For example, my VPS address is 194.136.234.24 and it has configured Shadowsocks on the port 3489 and the password is 123456 and the decryption is aes-256-cfb, the command will be:

    sslocal -s 194.136.234.24 -p 3489 -l 1080 -k 123456 -t 600 -m aes-256-cfb
    

    Then install the Autoproxy-ng in the firefox. Click on Preferences on the dropdown menu of the globe, the window called "Autoproxy Preferences" will pop out. Then select Proxy Server - Edit Proxy Server, then add:

    Give it a NameProxy Host:Port:httpsocks4socks5
    Shadowsocks127.0.0.11080*

    Go to the original banned site, it's now accessible!

  3. Make it run every time the system starts, I'm a fan of supervisor, so that's what I did:

    1. Install Supervisor

      $ sudo apt-get install supervisor
      
    2. Add the config file (/etc/supervisor/conf.d/shadowsocks.conf) [Replace the The.Server.Address, Port, Password and Decryption with ur own]:

      [program:ss]
      command = sslocal -s The.Server.Address -p Port -l 1080 -k Password -t 600 -m Decryption
      user = root
      autostart = true
      autorestart = true
      stdout_logfile = /opt/ss/supervisor.log
      redirect_stderr = true
      environment = LANG=en_US.UTF-8,LC_ALL=en_US.UTF-8
      
    3. Run the file

      $ sudo supervisorctl reread & sudo supervisorctl update
      $ sudo supervisorctl start ss
      

    Notice: If u r using Debian Strench or newer version of Debian and find Shadowsocks unusable, click here and find Shadowsocks to solve it!

Flash on the Firefox

Currently Flash is still the better solution compared to HTML5 when it comes to some media such as videos. (Thank the guy for the guide)

  1. Launch the browser and download the Flash Player in a seperate folder. Download link = http://get.adobe.com/flashplayer/
  2. Launch the terminal and open the folder path where downloaded flash file is stored then run the following command.

    tar xzvf install_flash_player_11_linux.i386.tar.gz
    

    If in case your downloaded file having some another name then put that file name during extracting

    tar xzvf yourdownloadedfilename.tar.gz
    
  3. Now run the following last command (Remember: Do not change the folder path and stay in the same folder where you unpacked the files):

    cp libflashplayer.so /usr/lib/mozilla/plugins/
    

2017-04-01 Update: I found on my newly updated Debian Sid that the following command works, making the manual way above useless! The following command add Flash Plugin to both Firefox and Chromium:

sudo apt install browser-plugin-freshplayer-pepperflash

Flash on the Chromium

Click here and find Switch the browser to Chromium

2017-04-01 Update: I found on my newly updated Debian Sid that the following command works, making the manual way above useless! The following command add Flash Plugin to both Firefox and Chromium:

sudo apt install browser-plugin-freshplayer-pepperflash

Execute sudo without password

Thank the tutorial for helping me in doing so.

  1. Switch to root user and type the password and enter:

    su
    
  2. Edit the sudoers file:

    visudo
    
  3. Type the following in the bottom (Be sure to replace username with yours, for example, mine is snorlax, so I replaced it with snorlax)

    username ALL=(ALL) NOPASSWD: ALL
    

    It looks just like this:

    #
    # This file MUST be edited with the 'visudo' command as root.
    #
    # Please consider adding local content in /etc/sudoers.d/ instead of
    # directly modifying this file.
    #
    # See the man page for details on how to write a sudoers file.
    #
    Defaults        env_reset
    Defaults        mail_badpass
    Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:$
    
    # Host alias specification
    
    # User alias specification
    
    # Cmnd alias specification
    
    # User privilege specification
    
    # Allow members of group sudo to execute any command
    %sudo   ALL=(ALL:ALL) ALL
    
    # See sudoers(5) for more information on "#include" directives:
    
    #includedir /etc/sudoers.d
    
    username ALL=(ALL) NOPASSWD: ALL
    

Show the emoji correctly

Install ancient fonts using the command.

sudo apt-get install ttf-ancient-fonts

Install the fonts manually in Xfce

I recently switched from Gnome to the much lighter Xfce, it does not have any font viewer so installing fonts is not one-click away here. The following commands assumes you have copied fonts in your Home directory. (Source)

  1. Open Terminal. Go to the fonts folder:

    cd /usr/local/share/fonts
    
  2. This command would direct to the fonts folder. Now to copy the fonts from Home directory to the fonts folder:

    sudo cp ~/*.ttf
    

    This would copy all the TrueType Fonts (TTFs) from Home directory.

  3. If you want to copy any specific font, do this:

    sudo cp ~/fontname.ttf
    

    Now change the administrative rights of these fonts:

    sudo chown root *.ttf
    
  4. Now go back to the root directory:

    cd ..
    
  5. Now for system-wide implementations of these fonts, do the following:

    fc-cache
    

Others

Add something I need following the official guide:

  1. Wifi
  2. Pelican
  3. More......

Feel?

I'd like to say, Debian runs a command in the Terminal much faster than the speed at which Windows 10 runs a command in the Powershell. If u use a static site generator locally, u can try urself.

Besides, with Debian and Virtualbox, most of the work can be done.

BTW, I've only used 8.8 GB of the disk, much less than Windows 10.