Debian: Difference between revisions
No edit summary |
(→System) |
||
(34 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Console = |
|||
* [[Bulk rename files on a linux system]] |
|||
* [[Clear the history]] |
|||
* [[Debian, ssh]] |
|||
* [[Encrypt a file using gpg]] |
|||
* [[Find out bits of linux]] |
|||
* [[debian, dig]] |
|||
* [[rename a user / change username]] |
|||
* [[Install Java]] |
|||
= Config/Setup/Install = |
|||
== System == |
|||
* [[.bashrc]] |
* [[.bashrc]] |
||
* [[32 bit apps on 64 bit debian]] |
* [[32 bit apps on 64 bit debian]] |
||
* [[Add non-free firmware drivers]] |
* [[Add non-free firmware drivers]] |
||
* [[Apache 2]] |
|||
* [[Bulk rename files on a linux system]] |
|||
* [[Clear the history]] |
|||
* [[Debian Proxy on command line]] |
* [[Debian Proxy on command line]] |
||
* [[Debian, Citrix client]] |
|||
* [[Debian, E-Mail server]] |
|||
* [[Debian, alternatives, change defaults for editor or browser]] |
* [[Debian, alternatives, change defaults for editor or browser]] |
||
* [[Debian, create self signed SSL certificate]] |
|||
* [[Debian, entries for the sources.list, apt-get]] |
* [[Debian, entries for the sources.list, apt-get]] |
||
* [[Debian, new installation]] |
* [[Debian, new installation]] |
||
* [[Debian, ssh]] |
|||
* [[Debian, start something at system start]] |
* [[Debian, start something at system start]] |
||
* [[Encrypt a file using gpg]] |
|||
* [[Find out bits of linux]] |
|||
* [[Firehol]] |
* [[Firehol]] |
||
* [[Linux history with date]] |
|||
* [[apt-get, proxy]] |
|||
* [[debian, create swapfile]] |
|||
* [[debian, minimum to send mail but not receive any]] |
|||
* Check disks |
|||
lsblk -f |
|||
* [[Error: update-initramfs warning: initramfs-tools configuration sets RESUME but no matching swap device is available]] |
|||
* [[Automatically update date/time]] |
|||
* [[Minimum install to be able to be a X-Client]] |
|||
=== Use a backport === |
|||
([https://www.how2shout.com/linux/how-to-install-and-use-backports-in-debian-11-bullseye/ source]) |
|||
* [[Using a backport]] |
|||
=== upgrade Debian to the next major version === |
|||
* [[upgrading Debian to the next major version]] |
|||
=== date uses wrong timezone, shows wrong format === |
|||
timedatectl list-timezones | grep Berlin |
|||
timedatectl set-timezone Europe/Berlin |
|||
man date |
|||
vi ~/.bashrc |
|||
alias date="date +'%F %T'" |
|||
== Other == |
|||
* [[Debian, E-Mail server]] |
|||
* [[Apache 2]] |
|||
* [[Installing MediaWiki on Debian]] |
|||
* [[Debian, Citrix client]] |
|||
* [[Debian, create self signed SSL certificate]] |
|||
* [[Icedove, attachment list empty, can't open attachment]] |
* [[Icedove, attachment list empty, can't open attachment]] |
||
* [[Install mumble server]] |
* [[Install mumble server]] |
||
* [[Install ncurses for php on Debian]] |
* [[Install ncurses for php on Debian]] |
||
* [[Installing MediaWiki on Debian]] |
|||
* [[Jabber server jabberd14]] |
* [[Jabber server jabberd14]] |
||
* [[Linux history with date]] |
|||
* [[Oracle developer, Type the full pathname of a J2SE installation]] |
* [[Oracle developer, Type the full pathname of a J2SE installation]] |
||
* [[PHP 5.3 with stable debian]] |
* [[PHP 5.3 with stable debian]] |
||
* [[Upgrade Debian Jessie with MediaWiki to Stretch]] |
* [[Upgrade Debian Jessie with MediaWiki to Stretch]] |
||
* [[apt-get, proxy]] |
|||
* [[backup with rsnapshot]] |
|||
* [[debian, apt-get for qmake/make]] |
* [[debian, apt-get for qmake/make]] |
||
* [[debian, create swapfile]] |
|||
=== sudo === |
|||
* [[debian, dig]] |
|||
apt-get install sudo |
|||
adduser <user> sudo |
|||
adduser andreas sudo |
|||
User andreas has to relogin for the new group to be enabled for him. |
|||
To check if you are part of the group sudo use |
|||
groups |
|||
Modify sudo rights and behavior: |
|||
visudo |
|||
Set vi as editor for visudo (.bashrc of root, will not work this way for any sudo user without more work) |
|||
export SUDO_EDITOR=`which vi` |
|||
Using sudo without password: |
|||
%sudo ALL=(ALL) NOPASSWD: ALL |
|||
Make sure to add this as last line or at least after all lines which do anything like this because otherwise the other rules will be used instead of this one. |
|||
Don't put your stuff into the regular sudo file which is shown by visudo. Instead create a file |
|||
vi /etc/sudoers.d/custom |
|||
and add content like this: |
|||
<pre> |
|||
# activate this to allow all commands without password |
|||
# %sudo ALL=(ALL) NOPASSWD: ALL |
|||
# command per user which don't need a password, comma seperated |
|||
andreas ALL=(ALL) NOPASSWD: /usr/sbin/shutdown, /usr/bin/ls |
|||
</pre> |
|||
=== top === |
|||
The output of top looks uninteresting and is bad to read. |
|||
This does not have to be that way. |
|||
Download [[Media:Top-config.zip]] to your home directory, unzip it and hope it does not crash/destroy something in your system. I only tested this with Debian 10. |
|||
* download to your home directory |
|||
* unzip |
|||
* call top |
|||
top |
|||
I just pressed '?' and tried the things they tell you there. Then I zipped the result. |
|||
=== install c++ === |
|||
sudo apt-get install build-essential manpages-dev libstdc++-8-doc |
|||
If libstdc++-8-doc does not exist, check for later versions. libstdc++-9-doc ... |
|||
=== Repository changes === |
|||
This must be accepted explicitly before updates for this repository can be applied. See apt-secure |
|||
apt-get update --allow-releaseinfo-change |
|||
=== screen "press space or return to end" === |
|||
.screenrc |
|||
startup_message off |
Latest revision as of 18:03, 12 August 2024
Console
- Bulk rename files on a linux system
- Clear the history
- Debian, ssh
- Encrypt a file using gpg
- Find out bits of linux
- debian, dig
- rename a user / change username
- Install Java
Config/Setup/Install
System
- .bashrc
- 32 bit apps on 64 bit debian
- Add non-free firmware drivers
- Debian Proxy on command line
- Debian, alternatives, change defaults for editor or browser
- Debian, entries for the sources.list, apt-get
- Debian, new installation
- Debian, start something at system start
- Firehol
- Linux history with date
- apt-get, proxy
- debian, create swapfile
- debian, minimum to send mail but not receive any
- Check disks
lsblk -f
- Error: update-initramfs warning: initramfs-tools configuration sets RESUME but no matching swap device is available
- Automatically update date/time
- Minimum install to be able to be a X-Client
Use a backport
(source)
upgrade Debian to the next major version
date uses wrong timezone, shows wrong format
timedatectl list-timezones | grep Berlin timedatectl set-timezone Europe/Berlin man date vi ~/.bashrc alias date="date +'%F %T'"
Other
- Debian, Citrix client
- Debian, create self signed SSL certificate
- Icedove, attachment list empty, can't open attachment
- Install mumble server
- Install ncurses for php on Debian
- Jabber server jabberd14
- Oracle developer, Type the full pathname of a J2SE installation
- PHP 5.3 with stable debian
- Upgrade Debian Jessie with MediaWiki to Stretch
- debian, apt-get for qmake/make
sudo
apt-get install sudo adduser <user> sudo adduser andreas sudo
User andreas has to relogin for the new group to be enabled for him. To check if you are part of the group sudo use
groups
Modify sudo rights and behavior:
visudo
Set vi as editor for visudo (.bashrc of root, will not work this way for any sudo user without more work)
export SUDO_EDITOR=`which vi`
Using sudo without password:
%sudo ALL=(ALL) NOPASSWD: ALL
Make sure to add this as last line or at least after all lines which do anything like this because otherwise the other rules will be used instead of this one.
Don't put your stuff into the regular sudo file which is shown by visudo. Instead create a file
vi /etc/sudoers.d/custom
and add content like this:
# activate this to allow all commands without password # %sudo ALL=(ALL) NOPASSWD: ALL # command per user which don't need a password, comma seperated andreas ALL=(ALL) NOPASSWD: /usr/sbin/shutdown, /usr/bin/ls
top
The output of top looks uninteresting and is bad to read. This does not have to be that way. Download Media:Top-config.zip to your home directory, unzip it and hope it does not crash/destroy something in your system. I only tested this with Debian 10.
- download to your home directory
- unzip
- call top
top
I just pressed '?' and tried the things they tell you there. Then I zipped the result.
install c++
sudo apt-get install build-essential manpages-dev libstdc++-8-doc
If libstdc++-8-doc does not exist, check for later versions. libstdc++-9-doc ...
Repository changes
This must be accepted explicitly before updates for this repository can be applied. See apt-secure
apt-get update --allow-releaseinfo-change
screen "press space or return to end"
.screenrc
startup_message off