べすとえふぉーと

プログラミング等のノート 

Ubuntu

Metasploit FrameworkをUbuntu22.04にインストール

$ sudo apt install curl postgresql postgresql-contrib $ curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall $ chmod u+x msfinstall $ sudo ./msfin…

Ubuntu 14.04 apacheのLet'sEncryptをdisable

下記コマンドを実行 a2dissite 000-default-le-ssl.conf service apache2 reload

Ubuntu 14.04 apacheでcertbotを設定

インストール sudo apt-get update sudo apt-get install software-properties-common sudo add-apt-repository ppa:certbot/certbot sudo apt-get update sudo apt-get install python-certbot-apache 実行 $ sudo certbot --apacheメールを聞かれるので入…

apt-getでIPV6アドレスに接続できない場合

IPV4使用のオプション -o Acquire::ForceIPv4=true をつける apt-get -o Acquire::ForceIPv4=true update apt-get -o Acquire::ForceIPv4=true upgradeinstallの場合も同じ

Ubuntu 14.04でvnc環境構築

インストール # sudo apt-get install xorg gnome-core gnome-system-tools gnome-app-install # sudo apt-get install tightvncserverパスワードの設定 # vncpasswdxstartupの設定 vi ~/.vnc/xstartup #!/bin/sh unset DBUS_SESSION_BUS_ADDRESS export GTK…

Let's encryptをUbuntu14.04に設定

環境: Apache 2.4.7 Ubuntu 14.04 git clone https://github.com/letsencrypt/letsencrypt cd letsencrypt ./letsencrypt-auto certonly --webroot -w /var/www/html -d $domain メールを入力する画面が表示されるので入力してからApacheに設定 ./certbot-a…

Ubuntu 14にSconsをインストール

sudo apt-get install python-pip sudo pip install --egg Scons pipが入ってない場合があるのでpipのインスコから あとはSConstructがあるディレクトリに移動してビルド cd toSourceDir scons BuildTarget

Ubuntu 14 Python3.4でvenv

sudo apt-get install python3.4-venv pyvenv-3.4 targetdir cd targetdir source bin/activate sudo apt-get install python3-venvだとnot foundなので python3.4-venv

Ubuntu 32bit環境にAtomをインストール

ターミナルから # sudo add-apt-repository ppa:webupd8team/atom # sudo apt-get update # sudo apt-get install atom