Posted 07/21/2021Updated 07/19/20232 minutes read (About 281 words)Soft Router Solution on Ubuntu Server 20.04This solution is based on the built-in systemd-networkd, isc-dhcp-server and hostapd; conflicted with dnsmasq. It is using the built-in IP forwarding feature against bridging. See also routing vs bridging Prerequisites Traffic and firewall management 12sudo ufw enablesudo ufw status DHCP server 12sudo service isc-dhcp-server startsudo service isc-dhcp-server status WiFi hotspot 123sudo systemctl unmask hostapdsudo systemctl enable hostapdsudo systemctl status hostapdRead more
Posted 07/21/2021Updated 07/19/2023a few seconds read (About 64 words)10Gbps+ Ethernet EssentialsPrerequisitesMLNX_OFED_LINUX-5.1 no longer supports lowest-end Mellanox ConnectX3 series; using MLNX_OFED_LINUX-5.0 instead. sudo mount [MLNX…_ubuntu20.04_x86_64.iso] /mnt/cdrom -o loop./mlnxofedinstall Start configuration sudo mst startsudo mst status Details ibv_devinfo mlxconfig -d [device_identifier] querymlxconfig -d [device_identifier] set LINK_TYPE_P1=2 sudo systemctl start opensmd See also more.
Posted 09/13/2020Updated 07/19/2023a minute read (About 177 words)Miscellanies about initializing an Ubuntu Server (II)Error: Permission denied … when running Docker (perviously seen)Better solution than before: 123sudo groupadd dockersudo usermod -aG docker $USERsudo service docker restart [UPDATE]Looks like it is also required to logging out and back so that the group membership change takes effect (how?): 1su -s ${USER} And this is to check for group membership: 1getent group groupname | awk -F: '{print $4}' Potential issue when Docker for Ubuntu is installed and managed by SnapEither systemd or systemctl won’t be able to locate or control Docker, which would occur when Docker is pre-installed with Ubuntu Server. Use snap commands instead: 12sudo snap services dockersudo snap restart docker Local Build PreparationThis is likely to be a cure-all: 1sudo apt install -y build-essential
Posted 09/24/2017Updated 07/19/2023 Semprathlon / Simfae Dean Developing / Environmenta few seconds read (About 83 words)Prepare for deep learning based on GPU with Python OS: Ubuntu 16.04 Building prerequisities: make build-essential python3-dev Parallel computing prerequisities: cuda8.0 cudnn6.0 export CUDA_HOME=/usr/local/cudaexport PATH=$PATH:/usr/include:/usr/local/cuda/includeexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/lib/x86_64-linux-gpu/:usr/local/cuda/lib64 Python 3.5 packages: chainer tensorflow-gpu cupy nvidia-cuda-dev is only required when building cupy locally. If python package installation fails, try with sudo pip install --force-reinstall --ignore-installed --no-cache-dir -vvvv to debug.
Posted 07/27/2017Updated 07/19/2023 Semprathlon / Simfae Dean OSa few seconds read (About 58 words)Repair support for Ubuntu everyday usagehttps://askubuntu.com/questions/218377/install-remove-language-show-only-english-no-other-choice http://www.linuxdiyf.com/linux/20344.html https://askubuntu.com/questions/455682/14-04-chinese-ibus-input-no-options sudo apt-get –reinstall install language-selector-gnome sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4 ibus restart im-config -s ibus sudo ibus-setup
Posted 11/14/2016Updated 07/19/2023 Semprathlon / Simfae Dean OSa few seconds read (About 37 words)【161114】服务器管理记录Fatal Error: ezSQL_mysql requires mySQL Lib to be compiled and or linked in to the PHP engine yum install php56w-mysql restart Apache Ubuntu升级gcc,g++
Posted 08/26/2016Updated 07/19/2023 Semprathlon / Simfae Dean OSa few seconds read (About 36 words)Install Linux on Surface 3 (Non Pro) Prevent boot into Windows automatically when boot from SSD Rename or remove the /EFI/Microsoft in the EFI partition. Why the bash replied “fdisk/mkfs command not found?” Because /sbin is not appended to the $PATH.
Posted 07/13/2016Updated 07/19/2023 Semprathlon / Simfae Dean Servera minute read (About 144 words)【160713】服务器管理记录 Switch Ubuntu apt-get source sudo cp /etc/apt/sources.list /etc/apt/sources.list_backupsudo nano /etc/apt/sources.list Be aware to choose the corresponding version. deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse uname -a
Posted 07/12/2016Updated 07/19/2023 Semprathlon / Simfae Dean Servera few seconds read (About 47 words)【160712】服务器管理记录 mysql change a user password SET PASSWORD FOR ‘user-name-here‘@’hostname-name-here’ = PASSWORD(‘new-password-here’); 开启php的curl功能 sudo apt-get install php5-curl
Posted 06/10/2016Updated 07/19/2023 Semprathlon / Simfae Dean Servera minute read (About 138 words)【160610】服务器管理记录 Ubuntu查看运行中的进程及其id、监听端口 sudo netstat -anp 查询进程id pidof 安全终止某个进程 kill -15 后台运行某个进程 nohup& 内存空间不足的临时解决办法How To Create A Swap File In Linux linux下由于内存不足造成的 virtual memory exhausted: Cannot allocate memory, qt **.o文件 file not found configure-apache-to-listen-on-port-other-than-80 http://askubuntu.com/questions/256013/could-not-reliably-determine-the-servers-fully-qualified-domain-name