Tags
run: ip link (find name of device)
open “/etc/network/interfaces” file
add
allow-hotplug enp0s3
iface enp0s3 inet dhcp
sudo systemctl restart networking
https://www.redhat.com/sysadmin/ifconfig-vs-ip
28 Friday Jan 2022
Posted linux
inTags
run: ip link (find name of device)
open “/etc/network/interfaces” file
add
allow-hotplug enp0s3
iface enp0s3 inet dhcp
sudo systemctl restart networking
https://www.redhat.com/sysadmin/ifconfig-vs-ip
06 Monday Apr 2015
Posted linux
in-install from usb
http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows
-debian netinst (network installatin)
–partisi ext4 : /home , other ext4:/opt
–choose standard system utils
http://linuxforcynics.com/how-to/minimal-debian-install
https://mike632t.wordpress.com/2014/05/20/debian-wheezy-minimal-installation/
-add “contrib non-free” to /etc/apt/source.list
https://wiki.debian.org/SourcesList
-add “–no-install-recommends to apt-get”
– wifi
–list driver: lspci | grep -i wireless
–install firmware-brcm80211 (from non-free)
–modprobe -r brcmsmac “then” modprobe brcmsmac
—check capabilities: iw list
–edit file /etc/network/interfaces
—add :
—-auto wlan0
—-face wlan0 inet dhcp
—- wpa-ssid puth123
—- wpa-psk ********
–sudo ifup wlan0
–hidden network: http://www.dafinga.net/2013/01/how-to-setup-raspberry-pi-with-hidden.html
https://wiki.debian.org/brcm80211
https://www.linux.com/learn/tutorials/374514-control-wireless-on-the-linux-desktop-with-these-tools
http://forums.debian.net/viewtopic.php?f=30&t=77950
https://wiki.debian.org/WiFi/HowToUse
http://www.cyberciti.biz/faq/linux-find-wireless-driver-chipset/
3 Ways to Create Wifi Hotspot in Ubuntu 14.04 (Android Support)
Wifi Hotspot: Access Point Mode Is Not Supported By This Device
-x window
–sudo apt-get install xorg
— startx (start x window)
-openbox
sudo apt-get install openbox
“openbox –reconfigure” reloads menu.xml and rc.xml without restarting openbox
+openbox rc & autostrat file:https://github.com/puth7/linux-setting
https://urukrama.wordpress.com/openbox-guide/ %5D
http://ndever.net/articles/linux/install-openbox-ubuntu-1304-1310
http://crunchbanglinux.org/wiki/configuring_the_openbox_menu
-leafpad (text editor)
sudo apt-get install leafpad –no-install recommends
-lxterminal
sudo apt-get install lxterminal –no-install-recommends
– grub
–sudo gedit /etc/default/grub , add(before grub_timeout):
—GRUB_HIDDEN_TIMEOUT=1
—GRUB_HIDDEN_TIMEOUT_QUIET=true
–sudo update-grub
-web browser
–sudo apt-get install iceweasel
light :netsurf/midori
http://www.libre-software.net/how-to-install-firefox-on-ubuntu-linux-mint
https://wiki.debian.org/Iceweasel
https://thestandardoutput.com/posts/install-the-real-firefox-on-debian-7/
http://en.wikipedia.org/wiki/Mozilla_Corporation_software_rebranded_by_the_Debian_project
-application finder (menu) :
sudo apt-get install gmrun
-sound-vol control
$ sudo apt-get install alsa-base alsa-utils
(And get it started:
$ alsactl init
(And now test it to see if we can actually hear anything:
$ aplay /usr/share/sounds/alsa/*
(Should hear a woman’s voice saying “Front center” etc.
http://askubuntu.com/questions/97936/terminal-command-to-set-audio-volume
http://unix.stackexchange.com/questions/32206/set-volume-from-terminal
(keyboard control:
https://bbs.archlinux.org/viewtopic.php?id=190943
https://wiki.archlinux.org/index.php/Openbox#Volume_Control
-pcbeeb
–put ‘xset -b’ in ~/.config/openbox/autostart
http://linuxforcynics.com/how-to/disable-pc-speaker-beep
http://www.thinkwiki.org/wiki/How_to_disable_the_pc_speaker_%28beep!%29
https://wiki.archlinux.org/index.php/Disable_PC_speaker_beep
-video:
mplayer: sudo apt-get install mplayer (successor update: mpv )
http://www.makeuseof.com/tag/5-amazing-linux-video-players-for-watching-movies-and-shows/
-audio:
sudo apt-get install audacious –no-install-recommends
http://thesimplecomputer.info/choosing-a-linux-music-player#audacious
https://bbs.archlinux.org/viewtopic.php?id=76726
-file manager :
sudo apt-get install xfe –no-install-recommends
-keycode
–xev
–# showkey –scancodes
https://wiki.archlinux.org/index.php/extra_keyboard_keys
-keybinding/shortcut
http://openbox.org/wiki/Help:Bindings
https://wiki.archlinux.org/index.php/Openbox#Keybinds
http://melp.nl/2011/01/10-must-have-key-and-mouse-binding-configs-in-openbox/
-shoctcut
(keybind: W-t :lxterminal, W-r:gmrun, W-e: xfe, )
-openbox tips (exit)
–openbox –exit
https://bbs.archlinux.org/viewtopic.php?id=104361
-mounting
https://www.freebsd.org/doc/handbook/mount-unmount.html
https://help.ubuntu.com/community/Fstab
/etc/fstab
-path
http://askubuntu.com/questions/60218/how-to-add-a-directory-to-my-path
-pdf:
sudo apt-get install evince-gtk –no-install-recommends
-tex editor:
sudo apt-get install emacs
#texstudio#
-zip & unzip
sudo apt-get install zip unzip
-word:
abiword
-spreadsheet:
gnumeric
-lock screen:
–slock & xautolock:
—sudo apt-get install slock xautolock –no-install-recommends
—Then add the following to your ~/.xinitrc or openbox startup: xautolock -time 10 -locker slock -detectsleep
-or-
xscreensaver (dpms:control sleep, etc) ([or] slock & xautolock )
gedit ~/.config/openbox/autostart
# Start screensaver . Add xscreensaver to auto-start.
xscreensaver -no-splash &
xscreensaver-command -lock
http://www.jwz.org/xscreensaver/man1.html
-power control
sudo apt-get install cpufrequtils
http://www.thinkwiki.org/wiki/How_to_use_cpufrequtils
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Power_Management_Guide/cpufreq_governors.html
for ((i=0;i<$(nproc);i++)); do sudo cpufreq-set -c $i -r -g powersave; done
for ((i=0;i<$(nproc);i++)); do sudo cpufreq-set -c $i -r -u 1Ghz; done
-touchpad
synclient TouchpadOff=1 -> bind to XF86TouchpadToggle
http://askubuntu.com/questions/65951/how-to-disable-the-touchpad
http://askubuntu.com/questions/67718/how-do-i-disable-a-touchpad-using-the-command-line
-brightness
sudo apt-get install xbacklight (no need in jessie)
https://wiki.archlinux.org/index.php/Openbox#Brightness_control
gedit ~/.config/openbox/autostart
xbacklight =0
-hibernate
systemctl hibernate
http://www.cyberciti.biz/faq/linux-command-to-suspend-hibernate-laptop-netbook-pc/
-apt updating
https://wiki.debian.org/Aptitude
http://superuser.com/questions/93437/aptitude-vs-apt-get-which-is-the-recommended-aka-the-right-tool-to-use
http://ask.xmodulo.com/check-library-dependency-program-process-linux.html
http://askubuntu.com/questions/80655/how-can-i-check-dependency-list-for-a-deb-package
https://www.debian.org/doc/manuals/debian-faq/ch-pkgtools.en.html
-auto hibernate low batery
–create: /etc/udev/rules.d/99-lowbat.rules & fill with:
—# Suspend the system when battery level drops to 5% or lower
—SUBSYSTEM==”power_supply”, ATTR{status}==”Discharging”, ATTR{capacity}==”[0-5]”, RUN+=”/usr/bin/systemctl hibernate”
https://bbs.archlinux.org/viewtopic.php?id=147775
https://wiki.archlinux.org/index.php/Laptop#hibernate_on_low_battery_level
http://unix.stackexchange.com/questions/60778/how-can-i-get-an-alert-when-my-battery-is-about-to-die-in-linux-mint ,
http://unix.stackexchange.com/questions/109256/battery-full-notification
-install font :
anonymous pro ***, Inconsolata (monospace)
http://hivelogic.com/articles/anonymous-pro-programming-monospace-font
http://www.wikihow.com/Install-TrueType-Fonts-on-Ubuntu
https://bbs.archlinux.org/viewtopic.php?id=131696
http://askubuntu.com/questions/351595/change-default-font-in-ubuntu-13-04
https://wiki.archlinux.org/index.php/Font_configuration
https://wiki.archlinux.org/index.php/Fonts
https://packages.debian.org/testing/fonts-croscore
http://seasonofcode.com/posts/how-to-set-default-fonts-and-font-aliases-on-linux.html
dowload font -> cp to /usr/share/fonts/ -> fc-cache -> follow instruction in seasonofcode… (~/.fonts.conf)
-git
sudo apt-get install git
-screenshot
$ scrot ~/screenshots/%Y-%m-%d-%T-screenshot.png
https://wiki.archlinux.org/index.php/Taking_a_screenshot#scrot
-clock&system info
sudo apt-get install conky
http://conky.sourceforge.net/
+link conkyrc file:https://github.com/puth7/linux-setting
if weather is not working, install conky-all from repository
-latex
sudo apt-get install texlive
-sage
ftp://ftp.fu-berlin.de/unix/misc/sage/linux/64bit/index.html
http://www.sagemath.org/doc/installation/binary.html
http://www.sagemath.org/doc/installation/source.html
–> install depedencies, install build-essential, make, mv to /opt/, create link
-show pid :
ps aux
http://www.cyberciti.biz/faq/show-all-running-processes-in-linux/
-openbox app-raise:
https://bbs.archlinux.org/viewtopic.php?id=159688
-gcc error:
http://unix.stackexchange.com/questions/146402/configure-error-c-compiler-cannot-create-executables –> build-essential
-package information:
apt-cache,
dpkg :
http://newbiedoc.sourceforge.net/tutorials/apt-get-intro/info.html.en
http://linuxforcynics.com/how-to/list-installed-packages-in-debian-or-ubuntu
-seacrh content of package:
apt-file :
http://en.wikipedia.org/wiki/Apt-file
– deb multimedia:
http://www.deb-multimedia.org/
– cleaning :
http://ubuntuforums.org/showthread.php?t=140920
http://www.linuxquestions.org/questions/linux-general-1/finding-and-removing-junk-files-149088/
-find file
–find NAME
–locate NAME
http://askubuntu.com/questions/144698/find-a-file-using-the-terminal
-find location of binary(program)
which “app”
-show version of linux
lsb_release -a
-extract deb
https://www.linux-tips.org/article/37/how-to-extract-a-deb-package-without-installing
-copy folder
http://www.cyberciti.biz/faq/copy-folder-linux-command-line/
$ cp -avr /tmp/conf/ /tmp/backup
-voip
skype,linphone,jitsi,ekiga?
https://wiki.debian.org/skype [ install skype 4.2 -> not workng by micsosoft]
http://superuser.com/questions/808774/skype-4-3-without-pulseaudio-only-alsa-any-options
https://github.com/i-rinat/apulse
http://askubuntu.com/questions/85978/building-a-32-bit-app-in-64-bit-ubuntu
http://stackoverflow.com/questions/5383325/how-to-create-a-32-bit-shared-library-on-a-64-bit-platform-with-autotools
-flash?
-it is free?
http://vrms.alioth.debian.org/
-athan [install itools]
http://en.wikipedia.org/wiki/Sabily#Additional_software
firefox prayer times
-mail client
sudo apt-get install claws-mail
-hw monitor, battery chek: acpi -V
-configuration file:
https://github.com/puth7/linux-setting
-mount usb
http://forums.debian.net/viewtopic.php?f=10&t=104774
-see symbolic link
http://stackoverflow.com/questions/16017500/how-to-see-full-symlink-path
-folder/file info
http://www.cyberciti.biz/faq/unix-linux-find-file-owner-name/
-ownnership+mount
http://www.computerhope.com/unix/uchown.htm
https://help.ubuntu.com/community/AutomaticallyMountPartitions#Systemwide_Mounts
http://stackoverflow.com/questions/25559700/chown-command-returning-operation-not-permitted
https://wiki.archlinux.org/index.php/USB_storage_devices#Mounting_USB_memory
https://wiki.archlinux.org/index.php/Fstab
http://man7.org/linux/man-pages/man8/mount.8.html#FILESYSTEM-INDEPENDENT_MOUNT%20OPTIONS
http://askubuntu.com/questions/232790/automount-ext4-partition-with-user-permission-ownership-fstab
-alias
http://unix.stackexchange.com/questions/109216/l-ls-la-what-are-the-differences-and-are-there-more-of-these-commands
http://www.linuxhowtos.org/Tips%20and%20Tricks/command_aliases.htm
-close lid
http://askubuntu.com/questions/395428/laptop-does-not-suspend-when-lid-is-closed
uncommenting variable LID_SLEEP=true
from /etc/default/acpi-support
.
edit: /etc/systemd/logind.conf
-script
http://www.cyberciti.biz/faq/howto-run-a-script-in-linux/
-vga plug in
https://wiki.archlinux.org/index.php/Udev#Execute_on_VGA_cable_plug_in
-consider instaall arch linux
http://www.thelinuxrain.com/articles/opinion-archlinux-and-stability
http://www.linux-on-laptops.com/
-MTP
https://wiki.archlinux.org/index.php/MTP
-picture, photo viewer : meh, mirage
https://wiki.archlinux.org/index.php/list_of_applications
-list groups member in the system
http://www.cyberciti.biz/faq/linux-list-all-members-of-a-group/
-mounting usb/ext hdd
# mount -o gid=users,fmask=113,dmask=002 /dev/sda1 /mnt/usbstick
sudo mount -o uid=puth,gid=puth,fmask=113,dmask=002 /dev/sdb1 /media/extdisk/
–ntfs install ntfs-3g
-cpu info
-chmod , change atribut
http://stackoverflow.com/questions/3740152/how-to-set-chmod-for-a-folder-and-all-of-its-subfolders-and-files-in-linux-ubunt
– create a focusing shortcut
-print environment:
printenv
-conky and prayer times
http://conkyforazan.blogspot.nl/
https://packages.debian.org/jessie/itools
https://groups.google.com/forum/#!topic/sabily-users/X33OPW0fpM8
http://stackoverflow.com/questions/10510323/how-can-i-switch-place-of-hour-and-minutes-from-a-clock-command-for-crontab-us
–add following lines in conkyrc:
${color #5b6dad}Prayer schedule:
${alignr}${color #5b6dad}Fajr Shorooq Zuhr Asr Maghrib Isha
${alignr}${color #5b6dad}—————————————
${alignr}${color #7f8ed3}${execpi 36000 ipraytime | awk ‘NR==12 {print $2″ “$3” “$4” “$5” “$6” “$7}’}
-linphone for skype subtitutions
-shell programming
http://www.grymoire.com/Unix/index.html
-count down and stopwatch in terminal, timer
stopwacth:time cat. countdown:sleep
http://www.linuxquestions.org/questions/linux-newbie-8/countdown-timer-for-linux-949463/
http://superuser.com/questions/611538/is-there-a-way-to-display-a-countdown-or-stopwatch-timer-in-a-terminal
$ sleep 37m && speaker-test -t sine -l 1 & time cat
$ sleep 17m && cat `cygpath -W`/Media/notify.wav > /dev/dsp & time cat
-make a beep
http://unix.stackexchange.com/questions/1974/how-do-i-make-my-pc-speaker-beep
speaker-test -t sine -f 1000 -l 1
-finding file containing ‘text ‘
http://www.cyberciti.biz/faq/howto-search-find-file-for-text-string/
-rotate screen
http://www.faqforge.com/linux/rotating-screen-in-ubuntu-and-linux-mint/
-extend monitor
http://unix.stackexchange.com/questions/12641/how-to-extend-my-desktop-to-a-second-connected-screen
http://stackoverflow.com/questions/18736948/extended-desktop-in-linux
aspostroph, quotes, keyboard weird behavour
http://ubuntuforums.org/showthread.php?t=1905935
-Run startup script as root
http://askubuntu.com/questions/155791/how-do-i-sudo-a-command-in-a-script-without-being-asked-for-a-password
Ubuntu Tips: How To Enable Root User ( Super User ) in Ubuntu
-panel/taskbar
fbpanel :https://bbs.archlinux.org/viewtopic.php?id=120226
http://lxlinux.com/fbpanel.html
-automatically set time date
https://wiki.debian.org/DateTime : apt-get install ntp
-burn cd/dvd
simpleburn
-various tips/command
http://www.commandlinefu.com/commands/browse/sort-by-votes ,
https://bbs.archlinux.org/viewtopic.php?id=56646&p=67
-copy file using ssh:
http://stackoverflow.com/questions/9427553/how-to-download-a-file-from-server-using-ssh