update the sourcelist
chmod 777 /etc/apt/source.list
vi /etc/apt/source.list
deb http://httpredir.debian.org/debian/ jessie main
deb-src http://httpredir.debian.org/debian/ jessie main
deb http://ftp.debian.org/debian/ jessie-updates main
deb-src http://ftp.debian.org/debian/ jessie-updates main
deb http://httpredir.debian.org/debian jessie-updates main
deb-src http://httpredir.debian.org/debian jessie-updates main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
su to root
apt-get install vim
apt-get install chrominum chrominum-l10
how to show the Chinese character in Debian
apt-get install fonts-arphic-ukai
apt-get install fonts-arphic-uming
Install "sudo" - Now that you are root user within the Terminal lets install "sudo"
- Type in the following command...
apt-get install sudo
- then press [enter]
Add your username to the sudo group
- Type in the following command...
adduser yourusernamehere sudo
- then press [enter]
Now add your name to /etc/sudoers file
- Type in the following command...
nano /etc/sudoers
- then press [enter]
- Scroll down and look for the line "%sudo ALL=(ALL:ALL) ALL"
- Below that line type in the following...
yourusernamehere ALL=(ALL:ALL) ALL
- Press "Ctrl+x" then press "y" and then press [enter] to exit and save the file
Now we exit out of the Terminal completely
- Type in the following command...
exit
- then press [enter]
- Type exit again...
exit
- then press [enter]
- That should have closed the Terminal application
Now let's open a new Terminal and test to see if sudo is working for your user name
- Click "Activities"
- Click in the "Type to search..." box
- Type in "Terminal" and press the [enter] key
- Test sudo by typing the following command...
sudo ls
- then press [enter]
- type in your password and press [enter]
- If the output looks like the following...
yourusernamehere is not in the sudoers file. This incident will be reported.
- then you might have to start from the beginning of these instructions and try again.
- If the output looks like this...
Desktop Documents Downloads Music Pictures Public Templates Videos
- Your username now has sudo rights, congratulations!
Enjoy!
fix the sound card problem
sudo apt-get --reinstall install pulseaudio
install some firmware
update adobe
$ wget ftp : //ftp .adobe.com /pub/adobe/reader/unix/9 .x /9 .5.5 /enu/AdbeRdr9 .5.5-1_i386linux_enu.deb $ sudo dpkg --add-architecture i386 $ sudo apt-get update $ sudo apt-get install libgtk2.0-0:i386 libxml2:i386 libstdc++6:i386 $ sudo dpkg -i AdbeRdr9*.deb |
youtube-dl
13 |
I did had this problem.. Try out this way...
Remove the old version of youtube-dl
Download the latest version from the official website
Change the permission of the downloaded file
|
How to decompress a .bz2 file
The syntax is:
bzip2 -d your-filename-here.bz2
OR
bzip2 -d -v your-filename-here.bz2
OR
bzip2 -d -k your-filename-here.bz2
OR
bunzip2 filename.bz2
OR
bzip2 -d -v your-filename-here.bz2
OR
bzip2 -d -k your-filename-here.bz2
OR
bunzip2 filename.bz2
Extract or Unpack a TarBall File
To unpack or extract a tar file, type:
To save disk space and bandwidth over the network all files are saved using compression program such as gzip or bzip2. To extract / unpack a .tar.gz (gzip) file, enter (note -z option):
To extract / unpack a .tar.bz2 (bzip2) file, enter (note -j option):
Where,
- -x : Extract a tar ball.
- -v : Verbose output or show progress while extracting files.
- -f : Specify an archive or a tarball filename.
- -j : Decompress and extract the contents of the compressed archive created by bzip2 program (tar.bz2 extension).
- -z : Decompress and extract the contents of the compressed archive created by gzip program (tar.gz extension).
How Do I Extract A Single File Called foo.txt?
To extract a single file called foo.txt, enter:
You can also specify path such as etc/resolv.conf, enter:
How Do I Extract a Single Directory Called etc?
To extract a single directory called etc, enter:
how to install winehq
Installing WineHQ packages
First, enable 32 bit packages:
sudo dpkg --add-architecture i386
Then install key which was used to sign packages:
wget https://dl.winehq.org/wine-builds/Release.key sudo apt-key add Release.key
Next add the repository to /etc/apt/sources.list or create a *.list under /etc/apt/sources.list.d/ with the following content:
deb https://dl.winehq.org/wine-builds/debian/ DISTRO main
with DISTRO being either wheezy, jessie, stretch or sid
To avoid problems with missing dependencies, Wheezy users should also add the following to /etc/apt/sources.list (if it is not already there):
deb http://ftp.de.debian.org/debian/ oldstable main
Update packages:
sudo apt-get update
Then install (example for the development branch):
sudo apt-get install winehq-devel
If you prefer to use the Staging branch, replace `winehq-devel` with `winehq-staging` in the line above.
If apt-get complains about missing dependencies, install them, then repeat the last two steps (update and install).
No comments:
Post a Comment